package com.ssm.dao;

import com.ssm.entity.Role;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Set;

public interface RoleDao extends BaseDao<Role> {

    int grant(@Param(value = "list") Set<Integer> list, @Param(value = "rid") int rid);

    int removeRoleMenu(@Param(value = "id") int rid);

    List<Integer> findRoleMenu(@Param(value = "rid") int rid);
}
